All Questions
8 questions
0votes
1answer
52views
Wget download wrong content
I'm trying to download a specific sitemap.xml (https://www.irna.ir/sitemap/all/sitemap.xml). The problem is that when you load the specific sitemap.xml for a few seconds one white page with a header ...
1vote
0answers
229views
XMLstarlet to fix image tags and replace path for images
I have multiple .XHTML files in the folder. The top declaration part is as follows: <?xml version="1.0" encoding="UTF-8"?> <html xml:lang="en-us" lang="en-...
0votes
3answers
245views
extract specific words and its data from html/xml file
sample input is <bre rt="1600" et="1550794901464" st="1550794899864" tid="8390500116294391399" mh="N" cn="" lc="" ts="N/A" cidc="" IDC="" eidc="BRE-S-TRA-0085418501"/> <r1> &...
3votes
1answer
5kviews
how to output html to a file with xmllint?
How do I get xmllint to output to a file? thufir@dur:~/xmllint$ thufir@dur:~/xmllint$ xmllint --html http://www.skynet.be/nieuws-sport/weer/mijn-weer?cityId=6450 --xpath '//div[@class = "tides"]' - ...
2votes
2answers
3kviews
Using bash to replace html character entities in the xml file
I have a string like this in xml file: <h3>Styled here with: <a href="$url('Product-Show','pid','107723102')$">FRS blo</a>, <a href="$url('Product-...
0votes
1answer
275views
Text Processing: How to sort list by date delimited by a string
I want to sort contents of file.txt by date. The date to sort is in the fourth table data <td></td> tag E.g. Content of file.txt: <tr><td>some_name_here</td><td>...
9votes
1answer
1kviews
how to massage or format html in order to parse with xmstarlet?
Do I first need to run html in the wild through something like jsoup? Not to make it valid in a human sense, might turn it to gibberish, but at least so that xmlstarlet can process the file? ...
1vote
0answers
801views
How to generate a nmap HTML report with python?
Given an .xml output file from a nmap scan, how would you suggest to generate an html report from this file? nmap proposes the following utility with shell (reference): xsltproc xsltproc <nmap-...